package com.sinbader.xiaole.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("in_stock_info")
@ApiModel(value="InStockInfo对象", description="入库单（采购入库、调拨入库）")
public class InStockInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "入库单号：自动生成")
    @TableField("in_stock_num")
    private String inStockNum;

    @ApiModelProperty(value = "开单日期")
    @TableField("open_date")
    private Date openDate;

    @ApiModelProperty(value = "供应商id")
    @TableField("supplier_id")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @ApiModelProperty(value = "总数量")
    @TableField("total_count")
    private Integer totalCount;

    @ApiModelProperty(value = "实际到货总数量")
    @TableField("actual_arrival_total_count")
    private Integer actualArrivalTotalCount;

    @ApiModelProperty(value = "总金额")
    @TableField("total_amt")
    private BigDecimal totalAmt;

    @ApiModelProperty(value = "项数(种类)")
    @TableField("type_count")
    private Integer typeCount;

    @ApiModelProperty(value = "折让金额")
    @TableField("before_discount_amt")
    private BigDecimal beforeDiscountAmt;

    @ApiModelProperty(value = "折后金额=总金额-折让金额")
    @TableField("after_discount_amt")
    private BigDecimal afterDiscountAmt;

    @ApiModelProperty(value = "入库方式（1:一般入库-采购入库 2:调拨入库")
    @TableField("in_depot_type")
    private Integer inDepotType;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "经手人id")
    @TableField("handle_user")
    private Long handleUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "审核人id")
    @TableField("audit_user")
    private Long auditUser;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "打印时间")
    @TableField("print_time")
    private Date printTime;

    @ApiModelProperty(value = "更新人id")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @ApiModelProperty(value = "默认为0,1为删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "用户类型 (supplier xiaole shop)")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty(value = "分店id")
    @TableField("org_id")
    private Long orgId;

    @ApiModelProperty(value = "单据状态")
    @TableField("status")
    private Integer status;


}
